/**
 * 
 */
package com.aaron.client;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Holds username and association information
 * @author aaron
 *
 */
public class Collaborator implements IsSerializable {
	private String username;
	private String association;
	public Collaborator(){
		this.username="";
		this.association="";
	}
	/**
	 * 
	 * @param username Gmail email address
	 * @param association One of 'owner', 'collaborator', 'viewer'
	 */
	public Collaborator(String username, String association){
		this.username=username.trim();
		this.association=association;
	}
	/**
	 * 
	 * @return The gmail email address associated with this collaborator
	 */
	public String getUsername(){
		return username;
	}
	/**
	 * 
	 * @returnOne One of 'owner', 'collaborator', 'viewer'
	 */
	public String getAssociation(){
		return association;
	}
}
